//
//  EmptyDataView.m
//  MKUITestApp
//
//  Created by 苏尚进 on 2020/8/24.
//  Copyright © 2020 moon. All rights reserved.
//

#import "EmptyDataView.h"

@interface EmptyDataView()
@property(nonatomic,strong) UILabel *label;
@end

@implementation EmptyDataView
- (id)initWithFrame:(CGRect)frame{
    if (self=[super initWithFrame:frame]) {
        self.label = [[UILabel alloc] init];
        self.label.numberOfLines = 0;
        self.label.textAlignment = NSTextAlignmentCenter;
        self.label.text = @"没有数据";
        self.label.font = [UIFont systemFontOfSize:24];
        [self addSubview:self.label];
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    self.label.frame = self.bounds;
}
@end
